#ifndef APPLICATION_HH
#define APPLICATION_HH
#include <SDL2/SDL.h>
#include "snake.hh"
#include "apple.hh"
#include "sprites.hh"


class Application
{
public:
	Application();
	int run();
private:

	int *permittedX;
	int *permittedY;

	int snakeSize = 0;
	bool quit = false;
	SDL_Window* window;
	SDL_Renderer* renderer;
	SDL_Event event;

	SDL_Texture* texture;
	Sprites sprites;
	Snake head;
	Apple *apple;

	void handleEvents();
	void update();
	void render();
	void close();
};
#endif 
